<?php
class userviewModel extends viewModel{

	public $table="user";
	public $view=array(
		"user_role"=>array(
			"join_type"=>"inner",
			"on"=>"user.uid=user_role.uid",
			"field"=>"rid,uid"
			),
		"role"=>array(
			"join_type"=>"inner",
			"on"=>"user_role.rid=role.rid",
			"field"=>"title"

			)

		);




}




 ?>